package test.core.data;

import org.junit.Test;

import hyl.core.MyFun;
import hyl.core.reflect.MyKryo;

public class testKryo {
	@Test
public void test() {
		kk k1= new kk();	
		k1.p1="p1";	
		k1.setp("p2");
		k1.p3="p3";
		k1.ii=2;
		MyKryo mkKryo=MyKryo.getInstance();
		byte[] bb=mkKryo.serialize(k1);
		kk k2= mkKryo.deserialize(bb);

		MyFun.print(k2.p1,k2.p3,k2.ii,k2.getp());
}
}
class kk{
	public String p1;
	public int ii;
	private String p2;
	protected String p3;
	public void setp(String v) {
		 p2=v;
	}
	public String getp() {
		 return p2;
	}
}